<script setup>
import ForumEntry from "@/components/forum/ForumEntry.vue";
// props解包
import {toRefs} from "vue";

const props = defineProps({groups: Array})
const {groups} = toRefs(props);

</script>

<template>
  <div v-for="group in groups">
    <h5>{{ group.name }}</h5>
    <div v-if="group.forums">
      <forum-entry v-for="forum in group.forums" :forum="forum"/>
    </div>
  </div>
</template>

<style scoped>

</style>